class People {
	constructor(name, age) {
		this.name = name;
		this.age = age;
	}

	say() {
		console.log('我的名字是'+ this.name);
    }
    
    _name() {
        console.log(this.name);
        
    }
}


class Student extends People {
	constructor(name) {
		super(name);
	}
}


let stu = new Student('cuihao');
console.log(stu);
stu.say();          // 调用了父类的方法